package com.xshang.service.impl;

import com.xshang.mapper.UserMapper;
import com.xshang.service.UserService;
import com.xshang.util.JsonUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public String userList() {
        return JsonUtil.objToJson(userMapper.getUserList());
    }
}
